import * as types from './mutation-type.js';

export default {
	[types.SET_USER_INFO](state, name) {
        state.userInfo = name;
    },
    [types.UPDATE_ISCHECKTOKEN](state, name) {
        state.isCheckToken = name;
    },
    [types.SET_APIHOST](state, name) {
        state.apiHost = name;
    },
    [types.SET_LEFTMENUNAV](state, name) {
        state.leftMenuNav = name;
    },
    [types.SET_USERINFO](state, name) {
        state.userInfo = name;
    },
    [types.SET_ACTIVEPANEL](state, name) {
        state.activePanel = name;
    },

    [types.SET_NAME](state, name) {
        state.name = name;
    },
    [types.SET_AGE](state, age) {
        state.age = age;
    },
    [types.SET_MENUNAV](state, flag) {
        state.menuNavFlag = flag;
    },
    [types.SET_OUTLOGIN](state, flag) {
        state.outlogin = flag;
    },
    [types.SET_COPYRIGHTiNFO](state, flag) {
        state.copyrightInfo = flag;
    },
    [types.SET_PLATFORMUSERSIZE](state, size) {
        state.platformUserSize = size;
    },
    [types.SET_CHECKLEVEL](state, size) {
        state.checkLevel = size;
    },
    [types.SET_PLATFORM_INFORMATION](state, info) {
          state.platformInformation = info;
    },
    [types.SET_WEBRTCFLAG](state, flag) {
        state.isSupportWebRtc = flag
    },
    [types.SET_ALLOWNINEFLAG](state, flag) {
        state.isAllowNine = flag
    },
};
